﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 机器人
{
    enum Delicious
    {
        番茄炒蛋,
        辣椒炒肉,
        黑椒肉丝
    }
    class CookRobot:Robot
    {
        private Delicious _food;
        public CookRobot (string name,Delicious food):base(name)
        {
            this.Food = food;
        }
        public Delicious Food { get => _food; set => _food = value; }

        private Delicious[] Foods =  { Delicious.番茄炒蛋,Delicious.辣椒炒肉,Delicious.黑椒肉丝}; 

        public CookRobot()
        {

        }
        public override void Working()
        {

            Console.WriteLine("我是{0}，我正在制作{1}，请稍等。。。",base.Name,this.Food);
            Console.WriteLine("我会做"+string.Join(",",Foods));
        }
    }
}
